from database.crud.user_dao import UserDAO
from sqlalchemy.orm import Session

class AuthService:
    @staticmethod
    def register(db: Session, username: str, password: str):
        return UserDAO.create_user(db, username, password)

    @staticmethod
    def login(db: Session, username: str, password: str):
        return UserDAO.verify_user_password(db, username, password)